package Stream.book;

public class Book{
    String name;
    int money;

    public Book(String name,  int money) {
        super();
        this.name = name;
        this.money = money;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "[书名=" + name + ", 价格=" + money + "]";
    }

}
